package m;

public class Student {
	Person person;
	String id;
	Department dep;
	CGPA cgpa;

	public Student(String name, String sn, String id) {
		this.person = new Person(name, sn);
		this.person.sn = sn;
		setId(id);
	}

	public Department getDep() {
		return dep;
	}

	public CGPA getGpa() {
		return cgpa;
	}

	public String getId() {
		return id;
	}

	public Person getPerson() {
		return person;
	}

	public void setDep(Department dep) {
		this.dep = dep;
	}

	public void setGpa(CGPA cgpa) {
		this.cgpa = cgpa;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setPerson(Person person) {
		this.person = person;
	}

	@Override
	public String toString() {
		String str = "";
		str += "hello admin :) you asked for a student data:\n"
				+ "---------------------------------------------\n" + "name: "
				+ getPerson().getName() + "\nsn: " + getPerson().getSn()
				+ "\nid: " + getId() + "\n";
		return str;
	}

}
